Simple SNMP library

This is the first release of the Simple SNMP library for Java. It is composed of three components: a MIB compiler, the SNMP library itself, and a simple GUI application. This SNMP library only supports version 1 of the SNMP standard as defined in RFC's 1155, 1157, 1212 and 1213.

This package is written to use features of Java 1.1. You should get and install this version of Java for your platform, if you haven't done so already.

Also to run the MIB compiler you need to get Java-Lex and Java Cup run-times and install them. These packages are found in the following locations:

Installation

Extract the files from the package. You can run the java programs in the directory it creates or move the class files, which are under the directory aka, to your collection of class files.

SNMP Library

This library at the moment supports the following SNMP operations: Snmp Traps are not supported at the moment, but they will most likely be in a future release.

There is javadoc documentation on the SNMP library in the doc directory. The Snmp class is the Main entry point to the library.

Running the command line demostration

To run the command line demostration:

java aka.snmp.Snmp cmd hostname community-name snmp-variable [set-value]

where:

MIB Compiler

The MIB compiler compiles ASN.1 SNMP definitions in a file which is loaded by the SNMP library at run time. The library comes with a file mib-V1.txt which is the MIB definitions from RFC 1213.

The compiler compiles this file and generates a ser Java serialization file for the SNMP library to read in.

Running the compiler

To run the compiler on a UNIX platform:

java aka.mc.Main < mib-V1.txt

This will produce a mibs.ser file.

GUI Application

The GUI application demonstrates the SNMP library by polling a SNMP agent at regular intervals and displaying values.

Running the application

java aka.gui.SnmpTable

The application starts up polling for two SNMP values sysName and sysUpTime, on the localhost. You change the host by replacing localhost in the host text field.

You can change the add a new variable or delete a variable using the menu items under the Edit menu. To delete a variable, select it from the list and then choose the Delete Variable menu item from the Edit menu. Also you can change the polling interval and SNMP community name from this menu item as well.

Future Directions

Some more things that I'm thinking of implementing in this library:

Thanks To

The Simple SNMP library uses the following Java tools

Copyright

Snmp Library
Copyright (C) 1997 Alex Kowalenko Associates Pty Ltd.

All rights reserved.This software maybe be free distributed, any any form, without fee, but may not be modified in any way without express permission of the directors of Alex Kowalenko Associates Pty Ltd.

Alex Kowalenko Associates Pty Ltd makes no representations or warranties about the suitability of the software, not even the implied warranty of merchantability or fitness for any particular purpose.


Alex Kowalenko
Last modified: Mon Jun 9 20:45:05 EST 1997